package com.tjmc.recruit.admin.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tjmc.recruit.admin.api.entity.SessionInfoEntity;
import com.tjmc.recruit.admin.api.vo.ChatVO;
import com.tjmc.recruit.admin.api.vo.CurrentUserSessionVO;
import com.tjmc.recruit.common.core.util.R;
import com.tjmc.recruit.finance.api.entity.PlatformUserAccountEntity;

import java.math.BigDecimal;
import java.util.List;

public interface SessionInfoService extends IService<SessionInfoEntity> {
    /**
     * 查询当前用户会话人员列表
     * @return
     */
    List<CurrentUserSessionVO> queryCurrentUserSessionList();

    /**
     * 查询当前用户与某个用户会话记录
     * @param page
     * @param userId
     * @return
     */
    Page<SessionInfoEntity> querySessionInfoPage(Page<SessionInfoEntity> page, Long userId);

    /**
     * 在线聊天
     * @param chatVO
     * @param data
     * @return
     */
    R chatOnLine(ChatVO chatVO, PlatformUserAccountEntity data);
}
